package com.axsoft.jobimp;

import java.io.DataOutputStream;
import java.io.IOException;
import java.io.OutputStream;

import com.axsoft.jobimp.types.DataType;


/**
 * 
 * @author RankoR
 *
 * Write various data to the socket
 */
public class OStreamWriter {
	
	final DataOutputStream mOutStream;
	
	public OStreamWriter(final OutputStream pOutStream) {
		mOutStream = new DataOutputStream(pOutStream);
	}
	
	public void writeData(final DataType pData) throws IOException {
		mOutStream.write(pData.getData());
	}
}
